<template>
  <div class="centerRight2">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <span>
          <i class="iconfont icon-vector" />
        </span>
        <div class="d-flex">
          <span class="text mx-2">实时热门到站top10</span>
        </div>
      </div>
      <div class="d-flex mt-1 jc-center body-box">
        <dv-capsule-chart :config="config" style="width:300px;height:450px;" />
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { reactive,  } from 'vue'
import { useHomeStore } from '@/store'
import { storeToRefs } from 'pinia'
const home = useHomeStore();
home.greenPopularStop();
const { popularStop } = storeToRefs(home);
let config = reactive<any>({
  data: popularStop,
  showValue: true,
})



</script>

<style lang="scss" scoped>
$box-height: 510px;
// $box-width: 300px;
.centerRight2 {
  padding: 16px;
  padding-top: 20px;
  height: $box-height;
  // width: $box-width;
  border-radius: 5px;
  .bg-color-black {
    height: $box-height - 30px;
    border-radius: 10px;
  }
  .text {
    color: #c3cbde;
  }
  .body-box {
    border-radius: 10px;
    overflow: hidden;
    .dv-scr-board {
      width: 270px;
      height: 340px;
    }
  }
}
</style>
